import http from "@/utils/request";

export default {

  async selectPageOfProgrammer(current, size, params) {
    return await http.get(`/api/programmer/selectPage/${current}/${size}`, params);
  },
  async insert(params) {
    return await http.post("/api/programmer/insert", params);
  },
  async update(params) {
    return await http.put("/api/programmer/update", params);
  },
  async deleteBatch(params) {
    return await http.post("/api/programmer/deleteBatch", params);
  },
  /**
   * 修改程序员秃头状态
   * @param params
   * @returns {Promise<void>}
   */
  async changeBaldheadStatus(params) {
    return await http.put("/api/programmer/changeBaldheadStatus", params);
  }

}
